package com.zky.gulimall.authserver.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Description WebConfig
 * @Author 张开源
 * @Date 2022/11/21 5:45
 * @Version 1.0
 **/
@Configuration
public class MyWebConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        //视图映射
/*
        registry.addViewController("login.html").setViewName("login");
*/
        registry.addViewController("reg.html").setViewName("register");

    }
}
